﻿@inject NavigationManager Navigation

<CascadingAuthenticationState>
    <Router AppAssembly="@typeof(Program).Assembly"
            AdditionalAssemblies="@_defaultAssemblies">
        <Found Context="routeData">
            <AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)">
                <NotAuthorized>
                    <Login></Login>
                </NotAuthorized>
            </AuthorizeRouteView>
        </Found>
        <NotFound>
            <Error404></Error404>
        </NotFound>
    </Router>
</CascadingAuthenticationState>

@code {
    private string _requestUri = string.Empty;

    private readonly IList<Assembly> _defaultAssemblies = new List<Assembly>()
    {
        Assembly.Load("Admin.RazorLib"),
        Assembly.Load("BaseData.RazorLib"),
        Assembly.Load("Production.RazorLib")
    // Assembly.Load("Config.RazorLib"),
    // Assembly.Load("Device.RazorLib"),
    };


}